#pragma once
#include "election.h"
class LocalElection :
	public Election
{
	string local_;
	string state_;
public:
	LocalElection(string name, vector<string> candidates, string state, string local ) : Election(name, candidates) { state_ = state; local_ = local; };
	~LocalElection(void);
	friend class ElectionFactory;
	virtual string GetLevel() { return "local"; };
	virtual bool CanVote(string state, string local) { return (state_ == state) && (local_ == local) ; } ;
	virtual bool IsDirect() { return true; } ;
};

